function logout() {
    if (confirm("确认登出账户吗?")) {
        jQuery.ajax({
            url: "/user/logout",
            type: "post",
            data: {},
            success: function () {
                location.href = "../index.html";
            }
        });
    }
}